/*
 * @Author: heinan
 * @Date: 2021-07-15 11:25:46
 * @Last Modified by: heinan
 * @Last Modified time: 2021-07-15 11:32:13
 */
import { UPDATE_LIST } from "@/store/types/cart";

const defaultState = {
  title: "cart",
  groupList: [],
};

const cart = function (state = defaultState, { type, payload }) {
  switch (type) {
    case UPDATE_LIST:
      return {
        ...state,
        groupList: payload,
      };
    default:
      return state;
  }
};
export default cart;
